home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11159 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: inforamp.net!ts32-06
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Coding Standards
  5. Date: Tue, 12 Mar 96 23:51:21 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4i52m8$2s5@sam.inforamp.net>
  8. References: <4hj8ek$elu@sam.inforamp.net> <4hktar$5o2@galaxy.ucr.edu> <4hsfrc$pmm@sam.inforamp.net> <4i26e8$h9e@B1FF.mindspring.com>
  9. NNTP-Posting-Host: ts32-06.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4i26e8$h9e@B1FF.mindspring.com>,
  13.    rudd@mindspring.com (Justin Rudd) wrote:
  14. >>Coding Standards
  15. >> 3 Naming Conventions
  16. >>1.    All class names should begin with the prefix BELL.  Example: 
  17. >>BELLSuperClass.
  18. >I've worked many jobs where the class names started with TO, B, and a
  19. >few others.  What the letters mean is very simple.  They are the
  20. >abbreviation of the Companies title. 
  21. >I asked one of the head developers once and he said that it is done
  22. >because UPPER MANAGEMENT thinks it promotes team unity.  *shrug*
  23. >Don't know about that...but....
  24.  
  25. Actually, I prefer that class names be prefixed by a project code myself.  If 
  26. you are working on the KIR project, then you prefix with KIR (i.e. 
  27. KIRClassName).  This way you know where the class came from.  If you see a 
  28. class HOSHello, then you know you borrowed the class from the HOS project.  
  29. You'll also know what comes from MFC or OWL and what comes from your own code. 
  30.  In large projects, it sometimes benefitial to prefix by a sub-project code.  
  31. Therefor, if you're working on the validation engine, you could prefix by 
  32. VALID (i.e. VALIDClassName) or something like that.  As long as everybody 
  33. follows the same standards.  And I have never seen a medium or large size 
  34. project where 75% the coding standards were followed.
  35.  
  36. Agrivar
  37.